#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>
int main()
{
    int n, hh, mm;
    scanf("%d:%d", &hh, &mm);

    if ((hh >= 0 && hh <= 11) || (hh == 12 && mm == 0))
        printf("Only %02d:%02d.  Too early to Dang.", hh, mm);
    else
    {
        n = hh - 12 + ceil(1.0 * mm / 60);  //取整函数ceil(x),返回大于或等于x的最小的整数值
        for (int i = 0; i < n; i++)
            printf("Dang");
    }
    return 0;
}